var initialState = {
  login: "登录"
};

function login(state = initialState, action) {
  // console.log(action.data);
  switch (action.type) {
    case "LOGININ":
      return Object.assign({}, state, { login: "欢迎您" + action.data });
    case "LOGOUT":
      return Object.assign({}, state, { login: "登录" });
    case "HOLDLOGIN":
      return Object.assign({}, state, { login: "欢迎您" + action.data });
    default:
      return state;
  }
}

export default login;
